<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->systemName;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript">
	function checkPass(){
		var password = $('input#password').val();
		if(password.length < 8 || password.length > 30){
			alert("密码中必须含有数字，小写字母，大写字母，长度必须在8-30范围内。");
			return false;
		}
		if(!password.match(/[A-Z]+/) || !password.match(/[a-z]+/) ||!password.match(/[0-9]+/) ){
			alert("密码中必须含有数字，小写字母，大写字母，长度必须在8-30范围内。");
			return false;
		}
		if(password != $('input#name3').val()){
			alert("两次输入密码不一致");
			return false;
		}
	}
</script>
</head>

<body>
	<div id="main">
		<div id="navigation">当前位置：<span id="focus">修改密码</span></div>
		<div id="body">
			<div id="edit">
				<form id="editForm" name="editForm" method="post" onsubmit="return checkPass();" action="">
					<table class="table">
						<tr>
							<td>原密码：</td>
							<td>
							<input name="oldPassword" type="password" class="input" id="oldPassword" value="" size="30" style="width:300px;"></td>
						</tr>
						<tr>
							<td>新密码：</td>
							<td><input name="password" type="password" class="input" id="password" value="" size="30" style="width:300px;" /></td>
						</tr>
						<tr>
							<td>确认新密码：</td>
							<td><input name="password2" type="password" class="input" id="name3" value="" size="30" style="width:300px;" /></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td><input type="submit" name="button" id="button" value="提交" class="button" /></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>